//
//  HelloWorldLayer.h
//  Maze
//
//  Created by Lin Tian on 9/9/11.
//  Copyright tina 2011. All rights reserved.
//


// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
#import "LocalPlayer.h"

// HelloWorldLayer
@interface HelloWorldLayer : CCLayer
{
    CCTMXTiledMap *_tileMap;
    CCTMXLayer *_background;
    CCTMXLayer *_meta;
    CCTMXLayer *_foreground;
    LocalPlayer *_player;
	NSMutableArray *remotePlayerList;
    NSMutableArray *itemPool;
    Room* _room;
}

// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCScene*)scene;
+(CCScene *) sceneWithGame:(HelloWorldLayer*)game;
-(void)gameUpdate:(ccTime)dt;
-(void)setViewpointCenter:(CGPoint)position;
-(void)setPlayerPosition:(CGPoint)position;
-(CGPoint)tileCoordForPosition:(CGPoint)position;

@property (nonatomic, retain) CCTMXTiledMap *tileMap;
@property (nonatomic, retain) CCTMXLayer *background;
@property (nonatomic, retain) CCTMXLayer *meta;
@property (nonatomic, retain) LocalPlayer *player;
@property (nonatomic, retain) CCTMXLayer *foreground;
@property (nonatomic, retain) NSMutableArray *remotePlayerList;
@property (nonatomic, retain) NSMutableArray *itemPool;
@property (nonatomic, assign) Room* room;
@end
